@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: #f9f9fa;
  --foreground: #171717;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --input-background: #ffffff;
  --input-text: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #f9f9fa;
    --foreground: #171717;
    --input-background: #ffffff;
    --input-text: #171717;
  }
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--input-text);
  -webkit-box-shadow: 0 0 0px 1000px var(--input-background) inset;
  transition: background-color 5000s ease-in-out 0s;
}

@layer components {
  .btn-primary {
    @apply rounded-lg bg-blue-600 px-4 py-2 text-white 
      hover:bg-blue-700 
      transition-all
      transform hover:translate-y-[-1px]
      hover:shadow-md
      active:translate-y-[1px]
      disabled:opacity-50 
      disabled:cursor-not-allowed;
  }
  
  .input-field {
    @apply rounded-lg border border-gray-200 px-4 py-2 
      focus:outline-none focus:ring-2 focus:ring-blue-500
      text-gray-900
      bg-white
      placeholder-gray-400
      transition-colors
      hover:border-gray-300;
  }
  
  .card {
    @apply rounded-lg bg-white p-6 shadow-lg
      border border-gray-100;
  }
}
